package com.study.cloud.gateway.common.exception;

import com.study.cloud.gateway.common.enums.ResponseCode;

/**
 * @author wangwancheng
 * @create 2025/7/20 17:19
 */
public class InstanceNotFoundException  extends GatewayBaseException{

    private static final long serialVersionUID = -5658789202509039759L;

    public InstanceNotFoundException() {
        this(ResponseCode.SERVICE_INSTANCE_NOT_FOUND);
    }

    public InstanceNotFoundException(ResponseCode code) {
        super(code.getMessage(), code);
    }

    public InstanceNotFoundException(Throwable cause, ResponseCode code) {
        super(code.getMessage(), cause, code);
        this.code = code;
    }
}
